<?php

/**
 *      [Discuz!] (C)2001-2099 Comsenz Inc.
 *      This is NOT a freeware, use is subject to license terms
 *
 *      $Id: home_userapp.php 6790 2010-03-25 12:30:53Z cnteacher $
 */

if(!defined('IN_DISCUZ')) {
	exit('Access Denied');
}

$appid = empty($_GET['id'])?'':intval($_GET['id']);



if($_G['uid']) {
	$space = getspace($_G['uid']);
}

if(empty($appid)) {

	require_once libfile('userapp/index', 'include');
	include_once template("home/userapp_index");

} else {

	if(checkperm('banvisit')) {
		showmessage('you_do_not_have_permission_to_visit');
	}
	if(empty($_G['setting']['my_status'])) {
		showmessage('no_privilege_my_status');
	}

	require_once libfile('userapp/app', 'include');
	include_once template("home/userapp_app");
}

?>
